rules = [{
    name: "google搜索结果禁止跳转",
    from: /^https?:\/\/www\.google\.com\/url\?.*url=([^&]*).*/i,
    to: "$1",
    regex: true
},{
    name: "wiki繁 >> 简",
    from: /^(https?:\/\/zh\.wikipedia\.org)\/(wiki|zh|zh((?!\-cn)[^\/])+)\/(.*)/i,
    to: "$1/zh-cn/$4",
    regex: true,
},{
    name: "sourceforge >> 镜像站点",
    from: /^https?:\/\/sourceforge\.net\/projects\/(\w)([a-z0-9A-Z_\-\.])([a-z0-9A-Z_\-\.]*)(\/files(\/.*))?/i,
    to: "http://www.mirrorservice.org/sites/download.sourceforge.net/pub/sourceforge/$1/$1$2/$1$2$3$5",
    regex: true
},{
    name: "Gravatar头像 >> 多说",
    from: /^https?:\/\/([0-9]?)\.gravatar\.com\/avatar\/(.*)$/i,
    to: "http://gravatar.duoshuo.com/avatar/$2",
    regex: true
},{
    name:"Greasyfork >> zh-CN",
    from:/^https:\/\/greasyfork\.org\/scripts\/(.*)/,
    exclude:/^https:\/\/greasyfork\.org\/scripts\/.*\.user\.js/i,
    to:"https://greasyfork.org/zh-CN/scripts/$1",
    regex:true
},{
    name: "uso >> uso-mirror",
    from: /^https?:\/\/userscripts\.org(:8080)?\/(.*)/i,
    to: "http://userscripts-mirror.org/$2",
    regex: true
},{
    name: "500px >> 原始大圖",
    from: /^https?:\/\/(.*)\.(edgecastcdn|500px)\.(net|org)\/(.*)\/[\d].jpg(.*)?/i,
    to: "https://$1.$2.$3/$4/2048.jpg",
    exclude: /^https?:\/\/(.*)\.(edgecastcdn|500px)\.(net|org)\/(.*)\/(1|2).jpg(.*)?/i,//排除頭像縮略圖
    regex: true
},{
    name: "优美图 >> 大图",
    from: /^https?:\/\/(.*)\.topit\.me\/(s|m)\/(.*)$/,
    to: "http://$1.topit.me/l/$3",
    regex: true
},{
    name: "百度贴吧|百科 >> 原始大图",
    from: /http:\/\/(imgsrc|[\w]?\.hiphotos)\.baidu\.com\/(forum|baike)\/[\w].+\/sign=[^\/]+(\/.*).jpg/i,
    to: "http://$1.baidu.com/$2/pic/item$3.jpg",
    regex: true,
    state: true
},{
    name: "去跳轉",
    from:/^https?:\/\/.*\.(?:jobui|zhihu|douban|mozilla|google|so|)\.(?:com|org|)\/(.*(\?link|\?target|\?url|\?imgurl)=)?(http[^&]+).*/i,
    to: "$3",
    decode: true,
    regex: true
},{
    name: "【https】常用网站（一）",
    from: /^http:\/\/(upload\.wikimedia\.org|bing\.com|dyncdn\.me|www\.baidu\.com|duckduckgo\.com|forum\.mobilism\.org|git\.oschina\.net)(.*)/i,
    exclude:/^http:\/\/www\.baidu\.com\/p\//i,
    to: "https://$1$2",
    regex: true
},{
    name: "【https】常用网站（二）",
    from: /^http:\/\/(.*?)(m-team\.cc)(.*)/i,
    to: "https://$1$2$3",
    regex: true
},{
    name: "【https】常用com网站",
    from: /^http:\/\/(.*)?(instagram|tumblr|vimeo|twitter|imgur|redditmedia|filesmonster|cam4s|douban|feedly)\.com\/(.*)$/i,
    to: "https://$1$2.com/$3",
    regex: true
}];